import request from '@/services/http'

type LoginParam = {
  username: string
  password: string
}

export const login = (data: LoginParam) => {
  // /euc/auth/login
  return request({
    url: '/euc/auth/login',
    method: 'post',
    data,
  })
}

export const mockLogin = () => {
  // /euc/auth/login
  return request({
    url: '/euc/auth/mockLogin',
    method: 'get',
  })
}
